#define _CRT_SECURE_NO_WARNINGS

#include "SeqList.h"

void test1()
{
	STLNode* plist = NULL;
	STLPushFront(&plist, 1);
	STLPushFront(&plist, 2);
	STLPushFront(&plist, 3);
	STLPushFront(&plist, 4);
	STLPrint(plist);

	STLPopBack(&plist);
	STLPrint(plist);
	STLPopBack(&plist);
	STLPrint(plist);
	STLPopBack(&plist);
	STLPrint(plist);
	STLPopBack(&plist);
	STLPrint(plist);
}

void test2()
{
	STLNode* plist = NULL;
	STLPushBack(&plist, 1);
	STLPushBack(&plist, 2);
	STLPushBack(&plist, 3);
	STLPrint(plist);

	/*STLNode* ret = STLFind(&plist, 2);
	STLInsert(&plist, ret, 3);*/

	STLNode* ret = STLFind(&plist, 3);
	STLErase(&plist, ret);
	STLPrint(plist);
}

void test3()
{
	STLNode* plist = NULL;
	STLPushBack(&plist, 1);
	STLPushBack(&plist, 2);
	STLPushBack(&plist, 3);
	STLPrint(plist);

	STLNode* ret = STLFind(&plist, 2);
	STLEraseAfter(ret);
	STLPrint(plist);


}



int main()
{
	test3();
	return 0;
}